package com.xique.door.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xique.door.bean.domain.VisitorDevice;
import com.xique.door.bean.request.visitor.VisitorAuthorizeListRequest;

import java.util.List;

/**
 * @author shd
 * @create 2022/2/26 16:24
 */
public interface VisitorDeviceMapper extends BaseMapper<VisitorDevice> {


    /**
     * 获取访客授权列表
     * @author shd
     * @date 2022/3/3 13:09
     * @param request
     * @return java.util.List<com.xique.door.bean.domain.VisitorDevice>
     */
    List<VisitorDevice> selectVisitorAuthorizeList(VisitorAuthorizeListRequest request);

    /**
     * 获取访客授权列表数量
     * @author shd
     * @date 2022/3/3 13:09
     * @param request
     * @return java.util.List<com.xique.door.bean.domain.VisitorDevice>
     */
    int selectVisitorAuthorizeCount(VisitorAuthorizeListRequest request);

    /**
     * @param id
     * @description: 根据设备id删除设备上的访客
     * @author taojc
     * @date: 2022/8/16
     */
    int deleteByVisitorId(Long id);

}
